popover: Clamp tail gap limits by the tail height on that side
authorCarlos Garnacho <carlosg@gnome.org>
Sat, 13 Dec 2014 17:02:29 +0000 (18:02 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 13 Dec 2014 17:02:29 +0000 (18:02 +0100)
commitba22ae8cceb8d74bf50742d94cc887e15e4f232e
tree5c574793fd3a57c6379e67e38ed87d5a4e9e40f8
parent99791007a77abef9375c171c62592e4b3b397d24
popover: Clamp tail gap limits by the tail height on that side

All popover sides have extra margins to possibly hold the tail, this is
accounted for in gtk_popover_get_rect_coords(), and should be accounted
for too in the tail position calculation.

This fixes the gtk_render_frame_gap() warnings seen when a popover is
pushed far too close to window sides.
gtk/gtkpopover.c